
exports.systemApi = {

    //修改用户密码
    "/systemApi/updatePass" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            u_id           : "",
            u_old_password : "",
            u_new_password : ""
        }
    },

    //登录接口
    "/systemApi/login" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            u_username : "",
            u_password : ""
        }
    },

    //查询接口文档菜单列表
    "/systemApi/searchApiDocsMenu" : {
        type   : 'SYSTEM',
        method : 'ALL',
        getMustParams : {
            type : "" //0-带系统接口 1-不带系统接口
        }
    },

    //查询聚合层接口文档菜单列表
    "/systemApi/searchAggregationApiDocsMenu" : {
        type   : 'SYSTEM',
        method : 'ALL',
        getMustParams : {
            type : "" //0-自身业务文档 1-扩展业务文档
        }
    },

    //查询扩展接口文档菜单列表
    "/systemApi/searchExtApiDocsMenu" : {
        type   : 'SYSTEM',
        method : 'ALL',
        getMustParams : {
            fm_id : "",
            type  : ""
        }
    },

    //查询接口详细信息
    "/systemApi/searchApiDocsDetail" : {
        type   : 'SYSTEM',
        method : 'ALL',
        getMustParams : {
            ap_id : ""
        }
    },

    //查询聚合层接口详细信息
    "/systemApi/searchAggregationApiDocsDetail" : {
        type   : 'SYSTEM',
        method : 'ALL',
        getMustParams : {
            bad_id : ""
        }
    },

    //查询原子层接口详细信息
    "/systemApi/searchAtomicApiDetail" : {
        type   : 'SYSTEM',
        method : 'ALL',
        getMustParams : {
            ap_id : ""
        }
    },

    //查询聚合层接口详细信息
    "/systemApi/searchAggregationApiDetail" : {
        type   : 'SYSTEM',
        method : 'ALL',
        getMustParams : {
            bad_id : ""
        }
    },

    //安装模块中间层相关处理
    "/systemApi/installAggregationExtension" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            fm_name : "",
            fm_install_dir : "",
            fm_dir_name : ""
        }
    },

    //卸载模块中间层相关处理
    "/systemApi/unInstallAggregationExtension" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            fm_id : ""
        }
    },


    //删除角色
    "/systemApi/removeRole" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            orid : ""
        },
        permissions: [
            CORE_APIConfig.coreAPI.menuDelete.Request_Api_Name
        ]
    },

    //删除菜单
    "/systemApi/removeMenu" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            menuid : ""
        },
        permissions: [
            CORE_APIConfig.coreAPI.menuDelete.Request_Api_Name
        ]
    },

    //删除节点
    "/systemApi/removeNode" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            osid : ""
        },
        permissions: [
            CORE_APIConfig.coreAPI.organizationalStructureDelete.Request_Api_Name
        ]
    },

    //删除用户
    "/systemApi/removeUser" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            uid : ""
        },
        permissions: [
            CORE_APIConfig.coreAPI.userUpdate.Request_Api_Name
        ]
    },

    //删除原子层接口
    "/systemApi/removeActionPermissions" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            apid : ""
        },
        permissions: [
            CORE_APIConfig.coreAPI.systemApiDeleteActionPermissions.Request_Api_Name
        ]
    },

    //删除原子层接口分类
    "/systemApi/removeActionPermissionsCategory" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            apcid : ""
        },
        permissions: [
           CORE_APIConfig.coreAPI.menuActionPermissionsCategoryDelete.Request_Api_Name
        ]
    },

    //删除聚合层接口文档分类
    "/systemApi/removeAggregationApiDocsCategory" : {
        type   : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            badcid : ""
        },
        permissions: [
            CORE_APIConfig.coreAPI.bussinessApiDocsCategoryDelete.Request_Api_Name
         ]
    },

    //获取聚合层服务器状态
    "/systemApi/searchAggregationServer" : {
        type   : 'SYSTEM',
        method : 'ALL'
    },

    //启动聚合层服务器操作
    "/ssh/startServer" : {
        type : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            server_ip   : '',
            server_dir  : ''
        }
    },

    //关闭聚合层服务器操作
    "/ssh/stopServer" : {
        type : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            server_ip   : '',
            server_dir  : ''
        }
    },

    //重新启动聚合层服务器操作
    "/ssh/restartServer" : {
        type : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            server_ip   : '',
            server_dir  : ''
        }  
    },

    //聚合层服务器GIT拉取更新  
    "/ssh/gitPull" : {
        type : 'SYSTEM',
        method : 'POST',
        postMustParams : {
            server_ip   : '',
            server_dir  : ''
        }
    }

}